# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter-packaging
pkgver=0.12.3
pkgrel=3
pkgdesc="Tools to help build and install Jupyter Python packages"
url="https://github.com/jupyter/jupyter-packaging"
arch="noarch"
license="BSD-3-Clause"
depends="py3-packaging py3-setuptools py3-tomlkit py3-wheel py3-deprecation"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest py3-pytest-mock py3-build py3-pytest-timeout py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter-packaging/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter-packaging-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest -W ignore::DeprecationWarning
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
04f7b2d743b2702284511a7e33b324687968e4ee994223065beaf803b9fad90ea37bcd5db14ca007595ebd7a4bc9f392525883d5b3d99a96615330e3f36d0565  py3-jupyter-packaging-0.12.3.tar.gz
"
